<?php
//CREATE SEARCH AREA

$ssFilter 	= $view->arrParam ['ssFilter'];


$keywords 	= $view->formText ( 'keywords', $ssFilter ['keywords'], array ('class' => 'keyword', 'placeholder' => $view->translate("Từ khóa") ) );

$linkSearch = $view->baseUrl (  'products/index/filter/type/timkiem/task/filter' );;


$btnSearch 			= $view->formSubmit ( 'keyword', $view->translate ( 'Search' ), array ('class' => 'btn-keyword','onclick' => "summitFormTimKiem('" . $linkSearch . "')"  ) );
$linkResetSearch 	= $view->baseUrl ( 'products/index/filter/type/timkiem/task/clear' );
$btnResetSearch 	= $view->formSubmit  ( 'clear-keywords', $view->translate ( 'Clear' ), array ('class' => 'btn-keyword','style'=>'margin-right: 70px','onclick' => "summitFormTimKiem('" . $linkResetSearch . "')" ) );
$strSearch 			= $keywords . ' ' . $btnSearch;
if(!empty($ssFilter ['keywords'])) $strSearch .= ' '.$btnResetSearch;
?>


<div class="search width-100 mar-bottom-20">
<form name="searchForm" id="searchForm" method="post" action="">
		<?php
		echo $strSearch?>
	</form>
</div>
